
use strict;
use Irssi;
use vars qw($VERSION %IRSSI);

$VERSION = "0.2";

%IRSSI = (
    authors     => 'Tom Laermans (SiD3WiNDR)',
    contact     => 'sid3windr@sid3windr.be, teemu.koskinen@mbnet.fi',
    name        => 'raw335',
    description => 'Prints the "is a bot" line in right format',
    license     => 'GPL',
    url         => 'http://www.codemonkey.be',
);

Irssi::theme_register([whois_bot => '[%Wx%n] bot      : is a bot']);

sub event_whois_bot {
	my ($server, $data) = @_;
	my ($num, $nick) = split(/ +/, $_[1], 2);

	$server->printformat($nick, MSGLEVEL_CRAP, 'whois_bot');
	Irssi::signal_stop();
}

Irssi::signal_add('event 335', 'event_whois_bot');
